.PHONY:all
all:server client
server:PbServer.cc protocol.pb.cc ./include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -L./lib -I./include -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz 
client:PbClient.cc protocol.pb.cc ./include/muduo/proto/codec.cc
	g++ -o $@ $^ -std=c++14 -L./lib -I./include -lmuduo_net -lmuduo_base -lpthread -lprotobuf -lz
.PHONY:clean
clean:
	rm -f server client